<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>编辑新闻</title>
</head>
<body>
<h2>新闻表单</h2>
<hr/>
<!--路径是相对的：save-->
<form action="save">
    <input type="hidden" name="ID" value="{$news['ID']}">
    <label>标题：<input type="text" name="title" value="{$news['title']}"/></label><br/>
    <label>类别：<select name="newsType">
        {volist name="newstype" id="vo"}
        <option value="{$vo.ID}" {eq name="vo.ID" value="$news.newsType"}selected{/eq}>{$vo.typeName}</option>
        {/volist}
    </select></label><br/>
    <label>内容：<textarea name="content">{$news['content']}</textarea></label><br/>
    <input type="submit" value="提交">
    <input type="reset" value="重填">
</form>
</body>
</html>